package com.shujia.flink.tf

import org.apache.flink.streaming.api.scala._

object Demo7Union {
  def main(args: Array[String]): Unit = {
    val env: StreamExecutionEnvironment = StreamExecutionEnvironment.getExecutionEnvironment

    val ds1: DataStream[Int] = env.fromCollection(List(1,2,3,4,5,6,7,8))

    val ds2: DataStream[Int] = env.fromCollection(List(8,10,11,12,13,14,15,16,17))

    val unionDS: DataStream[Int] = ds1.union(ds2)

    unionDS.print()


    env.execute()
  }
}
